
import { createRouter, createWebHistory, createWebHashHistory, createMemoryHistory }  from 'vue-router'


const routes = [
  {
    path: "/",
    redirect: "",
    component: () => import("./../components/Start.vue"),
  },
  {
    path: "/index",
    component: () => import("./../components/Content.vue"),
    children: [
      {
        path: "",
        component: () => import("./../components/HelloWorld.vue"),
      },
      {
        path: "todolist",
        component: () => import("./../components/pages/TodoList/Todolist.vue"),
      },
      {
        path: "echart-factory",
        component: () => import("./../components/pages/EchartFactory/EchartFactory.vue"),
      },
      {
        path: "iconlist",
        component: () => import("./../components/pages/IconTable/IconTable.vue"),
      },
    ],
  },
];
const router = createRouter ({
  routes,
  history:createWebHistory()
});

export default router;